import Vue from "vue";
import Router from "vue-router";
import Main from "@/views/main";
import Index from "@/views/modules/index"

Vue.use(Router);

export default new Router({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/",
      name: "main",
      component: Main,
      redirect: "/index",
      children: [
        {
          path: "index",
          name: "index",
          component: Index
        }
      ]
    }
  ]
});
